package com.ruoyi.system.domain.fx;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 供应商商品
 * 对象 fx_supplier_good
 *
 * @author ruoyi
 * @date 2024-07-23
 */
@Data
public class FxSupplierGood extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;


    /**
     * 父商品ID
     */
    private Long parentId;

    /**
     * 商品id
     */
    private Long[] goodIds;

    private Long goodId;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String goodName;

    /**
     * 描述
     */
    @Excel(name = "描述",width = 40,height = 40)
    private String goodDesc;

    /**
     * 批发价
     */
    @Excel(name = "批发价")
    private BigDecimal tradePrice;

    /**
     * 零售价
     */
    @Excel(name = "零售价")
    private BigDecimal retailPrice;

    /**
     * 创建价格
     */
    private Long createUser;
    // 创建者名称
    private  String createrName;

    /**
     * 区域
     */
    @Excel(name = "区域")
    private String region;

    private String regionName;

    /**
     * 累计数量
     */
    @Excel(name = "累计库存数量")
    private Long grandCounts;

    /**
     * 剩余数量
     */
    @Excel(name = "现有库存数量")
    private Long counts;

    /**
     * 总销售数量
     */
    @Excel(name = "总销售数量")
    private Long totalSellCount;

    /**
     * 商品图片
     */
    @Excel(name = "商品图片",width = 25,height = 25,cellType = Excel.ColumnType.IMAGE )
    private String goodImg;

    /**
     * 详情图片
     */
    private String goodDetail;

    /**
     * 说明
     */
    private String goodText;

    /**
     * 二维码url
     */
    @Excel(name = "二维码url",width = 25,height = 25,cellType = Excel.ColumnType.IMAGE )
    private String qrCodeUrl;

    /**
     * 0:待提交审核；1：已提交审核；2：审核通过；3：审核不通过
     */
    @Excel(name = "0:待提交审核；1：已提交审核；2：审核通过；3：审核不通过")
    private Long status;

    /**
     * $column.columnComment
     */
//    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long classOneId;

    /**
     * $column.columnComment
     */
//    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long classTwoId;

    /**
     * $column.columnComment
     */
//    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String classOneName;

    /**
     * $column.columnComment
     */
//    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String classTwoName;

    @Excel(name = "来源", readConverterExp = "1=供应商,2=店铺")
    private Integer source;

    /**
     * 供应商用户id
     */
    private Long userId;

    /** 供应商id */
    private Long supplierId;

    /**
     * 删除标志（0存在 1删除）
     */
    private Integer delFlag;

    /**
     * 是否上架（0上架，1下架）
     */
    private Integer isInitiate;

    /**
     * 库存版本号
     */
    private Integer version;

    /**
     * 供应商名称
     */
    private String supplierName;

    /** 供应商地址 */
    private String supplierAddress;

    /** 三级id */
    private Long classThreeId;

    /** 三级名称 */
    private String classThreeName;

    //仅仅接受参数用
    private  int storeId;
    // 店铺商品id
    private Long storeGoodId;

    /** 会员价 */
    @Excel(name = "会员价")
    private BigDecimal memberPrice;

    /** 产品规格 */
    private String specifications;
    /** 产品规格列表 */
    private List<String> specificationsList;

    /** 单位 */
    private String units;

    List<FxSupplierGood> sonList;

    List<Map<String,List<String>>> map;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brand;

    /** 产地 */
    @Excel(name = "产地")
    private String place;

    /** 重量 */
    @Excel(name = "重量")
    private String weight;

    /** 重量单位 */
    @Excel(name = "重量单位")
    private String weightUnits;

    /** 店内码/货号 */
    @Excel(name = "店内码/货号")
    private String articleNumber;

    /** 货架码/位置码 */
    @Excel(name = "货架码/位置码")
    private String shelfCode;

    /** 起购数 */
    @Excel(name = "起购数")
    private Long minimumPurchaseQuantity;

    /** 商品卖点15字以内 */
    @Excel(name = "商品卖点15字以内")
    private String sellingPoints;
}
